import React, {useContext} from 'react'

import useCreateContext from './useCreateContext'

export default function AppReducerChild() {
  const { ctx } = useCreateContext()
  const store = useContext(ctx)
  return (
    <div>
      {store.state.count}
    </div>
  )
}
